package com.bite.friend.service.exam;


import com.bite.common.core.domain.TableDataInfo;
import com.bite.friend.domain.exam.dto.ExamQueryDTO;
import com.bite.friend.domain.exam.vo.ExamVO;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IExamService {

    List<ExamVO> list(ExamQueryDTO examQueryDTO);

    TableDataInfo redisList(ExamQueryDTO examQueryDTO);

    String getExamFirstQuestion(Long examId);

    String preQuestion(@NotNull(message = "竞赛Id不能为空") Long examId, @NotNull(message = "题目Id不能为空") Long questionId);

    String nextQuestion(@NotNull(message = "竞赛Id不能为空") Long examId, @NotNull(message = "题目Id不能为空") Long questionId);
}
